﻿$(function(){

    var  url = window.location.href;
    if ( url.match(/(id=)/) ){
        $('h2.titulo-sessao-lista-criar').html('Editar lista');
        $('div.giftlist input#giftlistsave').addClass('edit');
    } else {
        $('#giftlisteventdate').val('25/12/2050');
        $('#giftlistname').keyup(function(){
            $('#giftlistgifeted').val( $(this).val() );
        });
        $('.address-list-select input:first').click();
    }
    
});
